<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <!-- import CSS -->
  <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
</head>
<body>
<div id="app">
  <el-main style="width: 1200px;margin: 0 auto">
    <el-row gutter="20">
      <el-col span="18">
        <el-carousel height="300px">
          <el-carousel-item v-for="item in 3">
            <img src="imgs/b1.jpg" width="100%" height="100%">
          </el-carousel-item>
        </el-carousel>
      </el-col>
      <el-col span="6">
        <el-card>
          <h3><i class="el-icon-trophy"></i>销量排行</h3>
          <el-divider></el-divider>
          <el-table :data="topArr">
            <el-table-column type="index" label="排名"></el-table-column>
            <el-table-column prop="title" label="商品标题"></el-table-column>
            <el-table-column prop="saleCount" label="商品销量"></el-table-column>
          </el-table>
        </el-card>
      </el-col>
    </el-row>
    <!--商品列表开始-->
    <el-row gutter="20">
      <el-col style="margin: 10px 0" span="6" v-for="p in productArr">
        <el-card>
          <img :src="p.url" width="100%" height="233px">
          <p style="font-size: 14px;height: 30px">{{p.title}}</p>
          <p>
            <b>￥{{p.price}}</b> <s>{{p.oldPrice}}</s>
            <span style="float: right">销量：{{p.saleCount}}件</span>
          </p>
        </el-card>
      </el-col>
    </el-row>
    <!--商品列表结束-->
  </el-main>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
 let v = new Vue({
    el: '#app',
    data: function() {
      return {

      }
    },
   methods:{

   }
  })
</script>
</html>